package com.bootdo.clouddocms;

import com.github.tobato.fastdfs.FdfsClientConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.context.annotation.Import;
import org.springframework.jmx.support.RegistrationPolicy;
import org.springframework.scheduling.annotation.EnableScheduling;


@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.bootdo.clouddocommon","com.bootdo.clouddocms"}) //必须加上
@EnableCaching
@EnableScheduling
@SpringBootApplication(scanBasePackages = {"com.bootdo.clouddocms", "com.bootdo.clouddocommon"}) //必须包扫描
@Import(FdfsClientConfig.class)
@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING)
public class ClouddoCmsApplication {

    public static void main(String[] args) {
        SpringApplication.run(ClouddoCmsApplication.class, args);
    }

}
